package io.gitee.zhangbinhub.admin.oauth.po

import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import org.noear.solon.validation.annotation.NotBlank

@ApiModel("模块功能配置参数")
data class ModuleFuncPo(
    @ApiModelProperty(name = "ID")
    var id: String? = null,
    @ApiModelProperty(name = "应用ID", required = true)
    @field:NotBlank(message = "应用ID不能为空")
    var appId: String? = null,
    @ApiModelProperty(name = "模块名称", required = true)
    @field:NotBlank(message = "模块名称不能为空")
    var name: String? = null,
    @ApiModelProperty(name = "模块编码", required = true)
    @field:NotBlank(message = "模块编码不能为空")
    var code: String? = null,
    @ApiModelProperty(name = "上级ID", required = true)
    @field:NotBlank(message = "上级ID不能为空")
    var parentId: String? = null,
    @ApiModelProperty(name = "关联角色ID")
    var roleIds: MutableList<String> = mutableListOf()
)
